// pages/orderAppraiseResult/result.js
var app = getApp(), fetchApi = require("../../../utils/httpPost.js")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgurl: app.getImgUrl(),
    showData: {
      bt1: "评价成功！",
      bt2: "评价内容将在审核完成后展示",
      page: "pingjia"
    }
  },
  goHome: function () {
    wx.switchTab({ url: "/pages/home/home" });
  },
  goContent: function () {
    wx.switchTab({ url: "/pages/personal/index" });
  },
  onLoad: function (a) {
    console.log("提交成功", a), "saleApply" == a._from && (this.data.showData.bt1 = "提交成功",
      this.data.showData.bt2 = "我们将在2个工作日给您反馈", this.data.showData.page = "saleApply",
      this.setData({
        showData: this.data.showData
      }));
  }
})